//
//  HomeNavView.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/8/4.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

protocol HomeNavViewDeleage : NSObjectProtocol {
    
    func tittleBtnDidTap()
    
    
    func rightBtnDidTap()

}

class HomeNavView: NavTittleView {
    
    weak var delegate : HomeNavViewDeleage?

    
    @IBOutlet weak var leftLabel: UILabel!

    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */
    
    
    
    @IBAction func tittleBtnDidTap(_ sender: LightDisableBtn) {
        
        delegate?.tittleBtnDidTap()
        

        
    }
    
    
    
    
    @IBAction func rightBtnDidTap(_ sender: LightDisableBtn) {
        
        delegate?.rightBtnDidTap()
        
    }

}
